package com.sc.design.component;

import java.util.ArrayList;

/**
 * @author sc
 * Created on  2017/12/6
 */
public class Branch extends Crop{
    private ArrayList subList= new ArrayList();

    Branch(String name, int salary, String position){
        super(name,position,salary);
    }



    public void add(Crop crop) {
        this.subList.add(crop);
    }

    public ArrayList getSubInfo() {
        return this.subList;
    }
}
